//
//  LSInfoCollectTableViewCell.m
//  LaSaCivilAffairsDepartment
//
//  Created by 聂志康 on 2019/1/9.
//  Copyright © 2019 wpkj. All rights reserved.
//

#import "LSInfoCollectTableViewCell.h"

@interface LSInfoCollectTableViewCell ()

@end

@implementation LSInfoCollectTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self.contentView addSubview:self.xingImageView];
        [self.contentView addSubview:self.leftLabel];
    }
    return self;
}

- (UIImageView *)xingImageView {
    if (!_xingImageView) {
        _xingImageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, 8, 11, self.frame.size.height-8)];
        _xingImageView.image = [UIImage imageNamed:@"xinhao"];
        _xingImageView.contentMode = UIViewContentModeCenter;
    }
    return _xingImageView;
}

- (UILabel *)leftLabel {
    if (!_leftLabel) {
        _leftLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 8+(44-8-15)/2, 100, 44-8)];
        _leftLabel.font = [UIFont fontWithName:@"SourceHanSansCN-Regular" size:14];
        _leftLabel.textColor = hexColor(333333);
    }
    return _leftLabel;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
